package com.mengxuegu.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author william
 * @create 2021-06-22 21:42
 **/
@RestController
public class ConfigClient {
    @Value("${server.port}")

    private String port;
    @Value("${spring.application.name}")
    private String application;


    @GetMapping("/config")
    public String config(){
        return "port:"+port+" application:"+application;
    }
}
